﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{//飞机
    class Plane:Vehicle,IFly
    {
        protected string name { get; set; }

        public Plane() { }

        public Plane(string name)
        {
            this.name = name;
        }

        

        public void feiji()
        {
            Console.WriteLine("我是：{0},飞机",this.name );
        }

        public void TakeOff()
        {
            Console.WriteLine("注意注意！我马上要起飞了！");
        }

        public void Fly()
        {
            Console.WriteLine("起飞了，请系好安全带！");
        }

        public void Land()
        {
            Console.WriteLine("到达目的地我要着陆了！");
        }
    }
}
